<!doctype html>
<html lang="en">
<head>
    @include('web.layout.head')
    <link rel="stylesheet" href="{{asset('/css/web/user/order_list.css')}}">
    <link rel="stylesheet" href="{{asset('/css/web/user/report.css')}}">
</head>
<body>
@include('web.layout.header')
@include('web.layout.user_tab')
<div class="base_member_content">
    <div class="w1200">
        @include('web.layout.buyer_nav')
        <div class="nav_right flr">
            <div class="base_content">
                <div class="line_title" style="border-bottom:1px dashed #e6e6e6;margin-bottom: 0;">我的举报</div>
                <a href="{{url('/member/buyer/report_add')}}" class="report_add"> +  新增</a>
                <div class="back_center">
                   <div class = "product-con">
                      <div class="product">
                          <table>
                              <thead>
                                <tr class="product-message">
                                  <td class = "product-name">举报商品</td>
                                  <td class = "product-name">举报类型</td>
                                  <td class = "product-name">被举报店铺</td>
                                  <td class = "product-name">举报时间</td>
                                  <td class = "product-name">举报内容</td>
                                  <td class = "product-name">状态</td>
                                </tr>
                              </thead>
                              <tbody>
                              @foreach($list as $k =>$v)
                                  <tr class = "product-type">
                                    <td class = "product-name">{{$v['product_name']}}</td>
                                    <td class = "product-name">{{$v['report_type']}}</td>
                                    <td class = "product-name">{{$v['shop_name']}}</td>
                                    <td class = "product-name">{{date('Y/m/d',strtotime($v['created_at']))}}</td>
                                    <td class = "product-name">{{$v['explain']}}</td>
                                    <td class = "product-name"><?php if($v['status']==0){ echo '未处理';}elseif($v['status']==1){echo '已处理';}else{ echo '无效';} ?></td>
                                  </tr>
                                  @endforeach
                                  {{--<tr class = "product-type">--}}
                                    {{--<td class = "product-name">摄像头</td>--}}
                                    {{--<td class = "product-name">倾销</td>--}}
                                    {{--<td class = "product-name">******经销商</td>--}}
                                    {{--<td class = "product-name">2018/01/12</td>--}}
                                    {{--<td class = "product-name">商品价格低，涉嫌倾销</td>--}}
                                    {{--<td class = "product-name">已处理</td>--}}
                                  {{--</tr>--}}
                                  {{--<tr class = "product-type">--}}
                                    {{--<td class = "product-name">摄像头</td>--}}
                                    {{--<td class = "product-name">倾销</td>--}}
                                    {{--<td class = "product-name">******经销商</td>--}}
                                    {{--<td class = "product-name">2018/01/12</td>--}}
                                    {{--<td class = "product-name">商品价格低，涉嫌倾销</td>--}}
                                    {{--<td class = "product-name">已处理</td>--}}
                                  {{--</tr>--}}
                              </tbody>
                          </table>
                       </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

@include('web.layout.footer')
<script>
    $(document).ready(function(){
        $(".report_add").on('click', function(){
          $(".report_add").css({"background":"#028eef","color":"#fff"
          })
        });
    });
</script>
</body>
</html>